<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.ResourceBundle"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	ResourceBundle resource1 = ResourceBundle.getBundle("resources.messageBundle.MessagesBundle_hi_IN");
	
	long currentTime = System.currentTimeMillis();
	SimpleDateFormat formatter = new SimpleDateFormat("ddMMyyyyhhmmss");
	java.sql.Date date2 = new java.sql.Date(currentTime);
	String date = formatter.format(date2);
	
	//out.println(date2);
%>
<!DOCTYPE>
<html>
<head>
<base href="<%=basePath%>">
<title><%= resource1.getString("employee_management") %>....<%= resource1.getString("title_designation") %></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/ChunkFive_400.font.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="jquery.autocomplete.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	
<script type="text/javascript" src="js/calendar.js"></script>
<script type="text/javascript" src="js/calendarDateInput.js"></script>

<script src="js/mr_mangal.js"></script>
<script src="js/Parser_mangal.js"></script>

<script>
				Cufon.replace('h1',{ textShadow: '1px 1px #fff'});
				Cufon.replace('h2',{ textShadow: '1px 1px #fff'});
				Cufon.replace('h3',{ textShadow: '1px 1px #000'});
				Cufon.replace('.back');
			</script>
<script type="text/javascript" src="js/DisableEnable.js" ></script>	
			
</head>
<body onLoad="disable();">
    
   	<div id="wrapper">
		        <div id="navr">
						 <div id="main-content">	
			
		
		<div id="form_wrapper" class="form_wrapper12">	
					<form class="login12 active12" name="form1" id="frm1" action="">					
					<div align="center">
						<table>
							<tr>
								<td> 
									<div align="center"> <input type="button" id="btn_add" value="<%= resource1.getString("add_button") %>" onClick="Enable_add();"/></div>
								</td>
								<td> 
									<div align="center"> <input type="button" id="btn_update" value="<%= resource1.getString("update_button") %>" onClick="Enable_update();" /></div>
								</td>
								<td> 
									<div align="center"> <input type="button" id="btn_delete" value="<%= resource1.getString("delete_button") %>" onClick="Enable_delete();" /></div>
								</td>
							</tr>
						</table>
					</div>
					<div align="center">
					<table id="add_button">
						<tr>
							  <td width="175">
							  	<label><%= resource1.getString("serial_no") %> : </label>
						  </td>
							  <td width="160" >
							      <input type="text"  onKeyPress="return change(this,event);" onkeyup ="onlyNumber();"/>
			              </td>
					  </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("userfull_name") %> : </label>
								</td>
								<td colspan="2">
								 <select name="select_department" onchange="set_sex(this.value);">
							 		 <option value="mr" ><%= resource1.getString("mr") %></option>
							 		 <option value="mrs" ><%= resource1.getString("mrs") %></option>
							     </select>
							    </td>
							    <td width="175">
									<label><%= resource1.getString("userfull_name") %> : </label>
						   </td>
								<td colspan="2">
								   <input type="text" name="exammonthyear"  id="exam_month_year"  value="" onKeyPress="return change(this,event);" class="textfieldlg"  />
							    </td>
						 </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("date_of_brith") %> : </label>
								</td>
								<td>
								   <input type="text" name="dateofbrith"  id="date_of_brith"  value="" readonly="readonly" class="textfieldlg"  />
								</td>
								<td width="40">
									<img src="images/schedule.png" alt="Calender" name="img3"   id="img3"  style="cursor: hand;" onClick="setYears(1950,2013);showCalender(this, 'date_of_brith');">								</td>
							    <td>
									<label><%= resource1.getString("sex") %> : </label>
								</td>
								<td colspan="2">
								   <input type="text" name="sex"  id="sex"  value="" readonly="readonly" class="textfieldlg"  />
								 </td>
						 </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("qualification") %> : </label>
								</td>
								<td colspan="2">
								   <input type="text" name="qualification"  id="qualification" value="" onKeyPress="return change(this,event);" class="textfieldlg"  />
							    </td>
							    <td>
									<label><%= resource1.getString("address") %> : </label>
								</td>
								<td colspan="2">
								   <input type="text" name="address"  id="address"  value="" onKeyPress="return change(this,event);" class="textfieldlg"  />
							    </td>
						 </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("phone_no") %> :	</label>
								</td>
								<td colspan="2">
								   <input type="text" name="phoneno"  id="phone_no" value=""  class="textfieldlg"  />
							    </td>
							    <td>
									<label><%= resource1.getString("date_of_joining") %> : </label>
								</td>
								<td>
								   <input type="text" name="dateofjoining"  id="date_of_joining"  value=""  readonly="readonly" class="textfieldlg"  />
								</td>
								<td>
									<img src="images/schedule.png" alt="Calender" name="img3"   id="img3"  style="cursor: hand;" onClick="setYears(1950,2013);showCalender(this, 'date_of_joining');">								
								</td>							   
						 </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("email_id") %> : </label>
						  		</td>
								<td colspan="2">
								   <input type="text" name="emailid"  id="email_id"  value=""  class="textfieldlg"  />
							    </td>
							    <td>
									<label><%= resource1.getString("date_of_retirement") %> : </label>
								</td>
								<td colspan="2">
								   <input type="text" name="dateofretirement"  id="date_of_retirement"  value="" readonly="readonly" class="textfieldlg"  />
								</td>
						 </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("select_department") %> : </label>
								</td>
								<td colspan="2">
								   <select name="select_department">
									  <option value="<%= resource1.getString("select_department") %>" ><%= resource1.getString("select_department") %></option>
									  <option value="<%= resource1.getString("account") %>"><%= resource1.getString("account") %></option>
									  <option value="<%= resource1.getString("finance") %>"><%= resource1.getString("finance") %></option>
							      </select>
								</td>
								<td>
									<label><%= resource1.getString("select_designation") %> : </label>
								</td>
								<td colspan="2">
								   <select name="select_designation">
									  <option value="<%= resource1.getString("select_designation") %>" ><%= resource1.getString("select_department") %></option>
									  <option value="<%= resource1.getString("account") %>"><%= resource1.getString("account") %></option>
									  <option value="<%= resource1.getString("finance") %>"><%= resource1.getString("finance") %></option>
							      </select>
								</td>
						 </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("select_category") %> : </label>
								</td>
								<td colspan="2">
								   <select name="select_category">
									  <option value="<%= resource1.getString("select_category") %>" ><%= resource1.getString("select_category") %></option>
									  <option value="<%= resource1.getString("account") %>"><%= resource1.getString("account") %></option>
									  <option value="<%= resource1.getString("finance") %>"><%= resource1.getString("finance") %></option>
							      </select>
								</td>
								<td>
									<label><%= resource1.getString("qt") %> : </label>
								</td>
								<td colspan="2">
								   <input type="text" name="qt" readonly="readonly" />
								</td>
						 </tr>
						<tr>		
								<td>
									<label><%= resource1.getString("handicap") %> </label>
								</td>
								<td colspan="2">
								   <select name="handicap" onChange="Enable_handicap(this.value);" >									  
									  <option value="no"><%= resource1.getString("no") %></option>
									  <option value="yes" ><%= resource1.getString("yes") %></option>
							      </select>
								</td>
								<td >
									<label id="handicap_label"><%= resource1.getString("handicap_if_yes") %> : </label>
								</td>
								<td colspan="2" >
								   <input id="handicap_text" type="text" onKeyPress="return change(this,event);" name="handicap" />
								</td>								
					  </tr>
						 <tr>
								<td>
									<label><%= resource1.getString("exam_pass_yes_no") %> </label>
								</td>
								<td>
								   <select name="exampass_yes_no" onChange="Enable_Exampass(this.value);">
								   	  <option value="no"><%= resource1.getString("no") %></option>
									  <option value="yes" ><%= resource1.getString("yes") %></option>									  
							      </select>
								</td>
						 </tr>
						 <tr>		
								<td>
									<label id="qt_nos"><%= resource1.getString("qt_nos") %> : </label>
								</td>
								<td colspan="2">
								   <input type="text" onKeyPress="return change(this,event);" name="qt_nos"  id="qt_text"/>
								</td>
								<td>
									<label id="exammonthyear"><%= resource1.getString("exam_month_year") %> : </label>
								</td>
								<td colspan="2">
								   <select id="exam_month_year1" name="exam_month_year">
									  <option value="<%= resource1.getString("exam_month_year") %>" ><%= resource1.getString("exam_month_year") %></option>
								   </select>
								</td>								
					  </tr>
						  <tr>
								<td>
									<label><%= resource1.getString("enqiry") %></label>
								</td>
								<td colspan="2">
								   <select name="enqiry" onChange="Enable_Enquiry(this.value);">									  
									  <option value="no"><%= resource1.getString("no") %></option>
									  <option value="yes" ><%= resource1.getString("yes") %></option>
							      </select>
								</td>
								<td>
									<label id="enquiry_label" ><%= resource1.getString("enquiry_order_no") %> : </label>
								</td>
								<td colspan="2">
								   <input id="enquiry_text" type="text" onKeyPress="return change(this,event);" name="enquiryorderno" />
								</td>
						 </tr>
						 <tr>		
								<td>
									<label id="startdate" ><%= resource1.getString("enqiry_start_date") %> : </label>
								</td>
								<td>
								   <input type="text" readonly="readonly" name="enqirystartdate" id="enqiry_start_date"/>
								</td>
								<td id="startdateimg">
									<img src="images/schedule.png" alt="Calender" name="startdateimg"   id="img3"  style="cursor: hand;" onClick="setYears(1950,2013);showCalender(this, 'enqiry_start_date');">
								</td>
								<td>
									<label id="enddate"><%= resource1.getString("enqiry_end_date") %> : </label>
								</td>
								<td width="160">
								   <input type="text"  readonly="readonly" name="enqiryenddate" id="enqiry_end_date"/>
						   </td>
								<td width="40" id="enddateimg">
									<img src="images/schedule.png" alt="Calender" name="enddateimg"   id="img3"  style="cursor: hand;" onClick="setYears(1950,2013);showCalender(this, 'enqiry_end_date');">								</td>							
					  </tr>
						  <tr>
								<td>
									<label><%= resource1.getString("remark") %> : </label>
								</td>
								<td>
								  <input type="text" onKeyPress="return change(this,event);" />
							    </td>
						 </tr>
						 <tr>
								<td colspan="3">
								 <div align="center"> <input type="button" value="<%= resource1.getString("save_button") %>" /></div>
								</td>
								<td colspan="3">
								 <div align="center"> <input type="submit" value="<%= resource1.getString("cancel_button") %>" name="back" onClick="go_back(this.form.name)"/></div>
								</td>
						 </tr>			
		 			</table>
					</div>
									
			  </form>
		
		  </div>
			
			
			
			</div>			
		</div>
		</div>
		
			
		
<table id="calenderTable">
        <tbody id="calenderTableHead">
          <tr>
            <td  colspan="4" align="center">
	          <select onChange="showCalenderBody(createCalender(document.getElementById('selectYear').value,
	           this.selectedIndex, false));" id="selectMonth">	 
	           <option value="Jan"><%= resource1.getString("jan") %></option>
	          <option value="Feb"><%=resource1.getString("feb") %></option>
	          <option value="Mar"><%=resource1.getString("march") %></option>
   	          <option value="Apr"><%=resource1.getString("april") %></option>	          	          
	          <option value="May"><%=resource1.getString("may") %></option>
   	          <option value="Jun"><%=resource1.getString("june") %></option>		          
	          <option value="Jul"><%=resource1.getString("july") %></option>
	          <option value="Aug"><%=resource1.getString("aug") %></option>
   	          <option value="Sept"><%=resource1.getString("sept") %></option>	          	          
	          <option value="Oct"><%=resource1.getString("oct") %></option>
	          <option value="Nov"><%=resource1.getString("nov") %></option>
	          <option value="Dec"><%=resource1.getString("dec") %></option>  
	          </select>            </td>
            <td colspan="2" align="center">
			    <select onChange="showCalenderBody(createCalender(this.value,
				document.getElementById('selectMonth').selectedIndex, false));" id="selectYear">
				</select>			</td>
            <td  align="center">
			    <label style="cursor: hand; " onClick="closeCalender();"><font color="#FFFFFF" size="+1">X</font></label>
			</td>
		  </tr>
       </tbody>
       <tbody id="calenderTableDays">
         <tr style="">
           <td ><div align="center"><%= resource1.getString("sun") %></div></td>
           <td ><div align="center"><%= resource1.getString("mon") %></div></td>
           <td ><div align="center"><%= resource1.getString("tue") %></div></td>
           <td ><div align="center"><%= resource1.getString("wed") %></div></td>
           <td ><div align="center"><%= resource1.getString("thu") %></div></td>
           <td ><div align="center"><%= resource1.getString("fri") %></div></td>
           <td><div align="center"><%= resource1.getString("sat") %></div></td>
         </tr>
       </tbody>
       <tbody id="calender"></tbody>
 </table>		

    </body>
</html>